﻿<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="java.util.regex.Matcher"%>
<%@ include file="include/taglib.jsp"%>
<%@page import="java.net.*"%>
<%@page import="com.sinodata.bsm.center.user.UserUtil"%>
<%@page import="com.sinodata.bsm.center.purview.FunctionConstants"%>
<%@page import="com.sinodata.bsm.center.purview.UserFunctionValidate"%>
<%
String loginUrl = System.getProperty("login.url");
InetAddress addr =InetAddress.getLocalHost();
String ip = addr.getHostAddress()+":"+request.getLocalPort();
String uamurl ="http://"+ip+"/bsm/";
Pattern reges = Pattern.compile("(http.*)\\/\\S*");
Matcher matcher = reges.matcher(loginUrl);
String uamPath = matcher.find()?matcher.group(1)+"/uam":"";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>中科金财IT综合监控系统</title>
        <%@ include file="include/common.jsp"%>
        <%@ include file="include/jbox.jsp"%>
        <style type="text/css">
           	html{overflow: hidden;}
       </style>
        <link href="${pageContext.request.contextPath}/style/default/bsm/header.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/iframe.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/index.js"></script>
		<script type="text/javascript">document.execCommand("BackgroundImageCache", false, true);</script><!-- IE6背景图片闪烁问题  -->
	   <script language="JavaScript" type="text/JavaScript">   
	   </script> 
    </head>
    <body>
   		<div id="header">
   		 <div class="rightIcon">
		   <ul class="xUl">
		     
			   <li class="Introduction"><a href="<%=loginUrl%>/logout">注销</a></li>
			   <!--
			   <li class="logUpdate"><a href="${pageContext.request.contextPath}/jsp/sysUpdateLog.html" target="_blank">更新日志</a></li> 
			   -->
			   <li class="intro_sep">|</li>
			   <li class="userName"  id="butn">
			   	  <div id="userDiv" >
			   	   <a class="administrator"><%=UserUtil.getInstance().getCurrentUserName()%> </a> 
				   <div id="div1"  >   
						<div><a class="information" href="<%=uamPath %>" target="_blank">个人信息</a></div>
						<div><a class="password" href="<%=uamPath %>/index.action?formUrl=bsm" target="_blank">修改密码</a></div>
					</div>
			   	  </div>
			   </li>
		   </ul>
   		</div>
   		<!--  		
   		<div class="other"><a href="#">综合监控</a><a href="#">服务流程</a><a href="#">配置管理</a></div>
   		 -->  
   		<div class="logo">
   			<a herf="#"></a>
   		</div>	
		<div class="banner">
			<div class="tabbar">
  				<div class="tabs" id= "firstMenuDiv">
  				    <% boolean isViewDisplay = UserFunctionValidate.isViewDisplay(); %>
  					<a href="${pageContext.request.contextPath}/jsp/main.jsp" target="content" class="actived" style="margin-left:0;padding-left:0;">监控首页</a> 
					<% if(isViewDisplay){%>
					<a href="${pageContext.request.contextPath}/resource/my-view-frame.action"   target="content">我的视图</a>
					<!--  <a href="${pageContext.request.contextPath}/appview/app!initView.action"   target="content">应用视图</a>
					<a href="${pageContext.request.contextPath}/performance/perf-frame.action" target="content">基础视图</a> 
					a href="${pageContext.request.contextPath}/resource/res-app!common.action" target="content">业务监控</a --> 
					<a href="${pageContext.request.contextPath}/event/event-frame.action"  target="content">综合查询</a>
					<%}%>
					<!--  
					<%if(UserFunctionValidate.sysFunctionValidate(FunctionConstants.VIEW_REPORT) || UserUtil.getInstance().isGuest(UserUtil.getInstance().getCurrentUser().getId())){%>
					<a href="${pageContext.request.contextPath}/jsp/report/report-frame.jsp" target="content">报表管理</a>
					<%}%>
					-->
					<%if(UserFunctionValidate.sysFunctionValidate(FunctionConstants.TOPO_MANAGER) && !UserUtil.getInstance().isGuest(UserUtil.getInstance().getCurrentUser().getId())){%>
						<a href="${pageContext.request.contextPath}/jsp/topo/topo-manage-main.jsp" target="content" >拓扑管理</a> 
					<%}%>
					<% if(isViewDisplay){%>
					<a href="${pageContext.request.contextPath}/resource/res-frame.action"   target="content">资源管理</a> 
					<%}%>
					<%if(isViewDisplay && UserFunctionValidate.sysFunctionValidate(FunctionConstants.STRATEGY_MANAGER) || UserUtil.getInstance().isGuest(UserUtil.getInstance().getCurrentUser().getId())){%>
						<a href="${pageContext.request.contextPath}/resource/res-strategy.action"  target="content">策略管理</a>
					<%} %>
					<%if(UserFunctionValidate.sysFunctionValidate(FunctionConstants.SYSTEM_MANAGER) || UserUtil.getInstance().isGuest(UserUtil.getInstance().getCurrentUser().getId())){%>
						<a href="${pageContext.request.contextPath}/config/config!common.action" target="content">系统维护</a> 
					<%}else{%>
						<a href="${pageContext.request.contextPath}/config/config!common.action" target="content">个性设置</a> 
					<%}%>
				</div>
  				<div class="bg">
    				<div class="nw"></div>
    				<div class="cen"></div>
    				<div class="cen"></div>
    				<div class="cen"></div>
    				<div class="cen"></div>
    				<div class="cen"></div>
    				<div class="cen"></div>
    				<div class="ne"></div>
  				</div>
			</div>
		</div>
		<div class="bar" ></div>
	</div>

     	<iframe id="content" name="content" src="${pageContext.request.contextPath}/jsp/main.jsp"  frameborder="0" width="100%" height="10px;"></iframe>
  </body>     
</html>